/**
 * @Description:
 * @Author bianpengfei
 * @create 2021/6/25 15:34
 */
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import context from './context'
import A from './A'
import B from './B'
import C from './C'
import './index.less'

console.log(context)

const {Consumer, Provider} = context

class Index extends PureComponent {
  constructor(props) {
    super(props)
    this.state = {}
  }

  render() {
    return (
      <Provider value={{userName: '张三'}}>
        <div className={'contain__wrap'}>
          <A>
            <B>
              <C></C>
            </B>
          </A>
        </div>
      </Provider>
    )
  }
}

Index.propTypes = {}

export default Index
